<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/7/25
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>新增工资查询</title>
    <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/admin.css">
    <script src="${pageContext.servletContext.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.servletContext.contextPath}/js/pintuer.js"></script>

</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>更新内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="${pageContext.servletContext.contextPath}/salary/update">
            <input type="hidden" class="input w50" value="${sysSalary.id}" name="id"  />

            <input type="hidden" class="input w50" value="${sysSalary.empName}" name="empName"  />
            <input type="hidden" class="input w50" value="${sysSalary.deptId}" name="deptId" />


            <div class="form-group">
                <div class="label">
                    <label>工资月份：</label>
                </div>
                <div class="field">
                    <input type="datetime-local" class="input w50"
                           value="<fmt:formatDate value="${sysSalary.payMonth}" pattern="yyyy-MM-dd HH:mm"/>"
                           name="payMonth"
                           data-validate="required:请输入工资月份" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>基本工资：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysSalary.baseSalary}" name="baseSalary" data-validate="required:请输入基本工资" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>全勤工资：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysSalary.allSalary}" name="allSalary" data-validate="required:请输入全勤工资" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>迟到扣款：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysSalary.lateDeductions}" name="lateDeductions" data-validate="required:请输入迟到扣款" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>请假扣款：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysSalary.leaveDeductions}" name="leaveDeductions" data-validate="required:请输入请假扣款" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>绩效工资：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysSalary.performanceBonuses}" name="performanceBonuses" data-validate="required:请输入绩效工资" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>个税扣款：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysSalary.taxDeductions}" name="taxDeductions" data-validate="required:请输入个税扣款" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>五险一金：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysSalary.fiveOneFund}" name="fiveOneFund" data-validate="required:请输入五险一金" />
                    <div class="tips"></div>
                </div>
            </div>


            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body></html>